/*
 * File:   FileParserTest.c
 * Author: max
 *
 * Created on Apr 22, 2013, 8:38:10 PM
 */

#include <stdio.h>
#include <stdlib.h>
#include "FileParser.h"

/*
 * Simple C Test Suite
 */

void test1() {
    printf("FileParserTest test 1\n");
    
    tWords words;
    unsigned int wordsCount;
    
    fileParserFromPath(&words, &wordsCount, "/home/Max/facultad/orga_66.20/2013.1/TP1/Tests/FileParserTest.txt");
    int i = 0;
    for (i = 0; i < wordsCount; i++)
    {
        fprintf (stdout, "%s", words[i]);
    }
    
    free (words);
}

void test2() {
    printf("FileParserTest test 2\n");
    printf("%%TEST_FAILED%% time=0 testname=test2 (FileParserTest) message=error message sample\n");
}

int main(int argc, char** argv) {
    printf("%%SUITE_STARTING%% FileParserTest\n");
    printf("%%SUITE_STARTED%%\n");

    printf("%%TEST_STARTED%% test1 (FileParserTest)\n");
    test1();
    printf("%%TEST_FINISHED%% time=0 test1 (FileParserTest) \n");
/*
    printf("%%TEST_STARTED%% test2 (FileParserTest)\n");
    test2();
    printf("%%TEST_FINISHED%% time=0 test2 (FileParserTest) \n");
*/
    printf("%%SUITE_FINISHED%% time=0\n");

    return (EXIT_SUCCESS);
}
